package day03;

import com.sun.org.apache.bcel.internal.generic.SWITCH;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        System.out.println("请选择功能1.存款2.取款3.查看余额4.退卡");
        int command =scan.nextInt();
        switch (command){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("查看余额");
                break;
            case 4:
                System.out.println("退卡成功");
                break;
            default:
                System.out.println("操作失败");
        }




    }
}
